package com.xiaoshuidi.cloud.module.member.api.invite;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.member.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/***
 * @author leo.li
 * @date 2023-06-07 21:20:24
 */

@FeignClient(name = ApiConstants.SERVERNAME)
@Tag(name = "RPC 服务 - 营销活动邀请有礼")
public interface InviteApi {

    String PREFIX = ApiConstants.PREFIX + "/invite";

    @PostMapping(PREFIX + "/add_invite_log")
    @Operation(summary = "邀请入账")
    CommonResult<Boolean> addInviteLog(@RequestParam("tenantUserid") Long tenantUserId,
                                          @RequestParam("inviteAccountId") Long inviteAccountId,
                                          @RequestParam("invitePhone") String invitePhone,
                                          @RequestParam("inviteConfigId") Integer inviteConfigId) throws Exception;
}
